const { DataTypes } = require('sequelize')
const sequelize = require('../config/database')

const SystemConfig = sequelize.define('SystemConfig', {
  type: {
    type: DataTypes.STRING,
    primaryKey: true,
    allowNull: false,
    comment: '配置类型'
  },
  value: {
    type: DataTypes.TEXT,
    allowNull: false,
    comment: '配置值(JSON字符串)'
  }
}, {
  tableName: 'system_config',
  timestamps: true,
  comment: '系统配置表'
})

module.exports = SystemConfig 